package com.example.boot1.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author dj
 * @date 2021/7/7
 */
@RestController
@RequestMapping
public class HelloController {

    private AtomicInteger integer = new AtomicInteger(1);

    @GetMapping("/hello")
    public String hello(){
        return "hello, this is " + integer.getAndIncrement();
    }

}
